﻿// See https://aka.ms/new-console-template for more information
using FanaticGene.CommandLineSerializer;

namespace FanaticGene.CommandLineSerializer.Console
{

    class Program
    {
        static void Main(string[] args)
        {

            var cmdcode = "fanbal.exe -v 2.33";
            //var strList = CommandLine.DepartCommandLine(cmdcode);
            var myclass = CommandLine.Deserialize<MyClass>(cmdcode);

            System.Console.WriteLine(myclass.ProgramName);

            System.Console.WriteLine(myclass.Version);

            var cmd = CommandLine.Serialize(myclass);
            System.Console.WriteLine(cmd);  
        }
    }

}


